package priv.mill.xml;

import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

public class Cat {
	private String name;

	private String type;
	
	private Double price;
	
	private Date date;
	
	@Autowired
	private DateFormat dFormat;

//	public Cat() {
//	}

	public Cat(String type, Double price) {
		this.type = type;
		this.price = price;
	}
	
	public Cat(Double price,String name ) {
		this.name=name;
		this.price=price;
		
	}

	@Override
	public String toString() {
		return "Cat [name=" + name + ", type=" + type + ", price=" + price + ", date=" + date + ", dFormat=" + dFormat
				+ "]";
	}

	
	
	
}
